package com.training.food.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.training.food.Mapper.ExamineMapper;
import com.training.food.pojo.Examine;
import com.training.food.service.ExamineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ExamineServiceImpl extends ServiceImpl<ExamineMapper, Examine>implements ExamineService {
    @Autowired
    ExamineMapper examineMapper;
    @Override
    public Examine select(Examine examine) {
        return examineMapper.getByUsername(examine);
    }

    @Override
    public void update(Examine examine) {
        examineMapper.update(examine);
    }

    @Override
    public List<Examine> lists() {
        return examineMapper.lists(1);
    }
}
